package com.doudou.getway;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static javolution.testing.TestContext.assertEquals;

/**
 * @author: 傻男人
 * @Date: 2020/3/27
 * @Description:
 */
@RestController
@RequestMapping("/get/way")
public class TestController {

    @Value("${test.test}")
    private String test;

    @GetMapping("/test")
    public String test(){
        return "alibaba-nacos-getWay";
    }


    @GetMapping("/test1")
    public String test1(String name){
        assertEquals("test","test1");
        return "hello   " + test +"    "+name;
    }


}
